package com.kmxd.ams.client.system.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Data;

/**
 * 用户配置表
 *
 * @author nickbi
 * @since 2022-07-16
 */
@Data
@ColumnWidth(15)
@HeadRowHeight(15)
@ContentRowHeight(15)
@HeadStyle
@HeadFontStyle(fontHeightInPoints = 12)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
@ContentFontStyle(fontHeightInPoints = 10)
@ExcelIgnoreUnannotated
@Schema(description = "用户配置表对象")
public class SysUserConfigListVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "用户id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "用户id")
  private Long userId;

  @Schema(description = "配置名称")
  @ExcelProperty(value = "配置名称")
  private String name;

  @Schema(description = "配置标识")
  @ExcelProperty(value = "配置标识")
  private String code;

  @Schema(description = "配置内容")
  @ExcelProperty(value = "配置内容")
  private String content;
}
